#ifndef PURCHASEORDERFORM_H
#define PURCHASEORDERFORM_H

#include <QList>

class QString;

class PurchaseOrderForm
{
public:
    PurchaseOrderForm();
    PurchaseOrderForm(const PurchaseOrderForm &org)
    {
        m_purchaseDate = org.m_purchaseDate;
        m_purchaseOrderFormNumber = org.m_purchaseOrderFormNumber;
        m_supplier = org.m_supplier;
        m_staff = org.m_staff;
        m_remark = org.m_remark;
    }
    PurchaseOrderForm & operator =(const PurchaseOrderForm &other)
    {
        if (this == &other)
            return *this;
        this->m_purchaseDate = other.get_purchaseDate();
        this->m_purchaseOrderFormNumber = other.get_purchaseOrderFormNumber();
        this->m_supplier = other.get_supplier();
        this->m_staff = other.get_staff();
        this->m_remark = other.get_remark();
        return *this;
    }
    PurchaseOrderForm(const QString purchaseDate, const QString purchaseOrderFormNumber, const QString supplier,
                   const QString staff, const QString remark)
    {
        m_purchaseDate = purchaseDate;
        m_purchaseOrderFormNumber = purchaseOrderFormNumber;
        m_supplier = supplier;
        m_staff = staff;
        m_remark = remark;
    }

    QString get_purchaseDate() const {return m_purchaseDate;}
    QString get_purchaseOrderFormNumber() const {return m_purchaseOrderFormNumber;}
    QString get_supplier() const {return m_supplier;}
    QString get_staff() const {return m_staff;}
    QString get_remark() const {return m_remark;}

private:
    QString m_purchaseDate ;
    QString m_purchaseOrderFormNumber ;
    QString m_supplier ;
    QString m_staff ;
    QString m_remark ;
};

typedef QList <PurchaseOrderForm> PurchaseOrderFormList;

#endif // PURCHASEORDERFORM_H
